//
//  ALPS_TRadioUnderCCell.m
//  Alps
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ALPS_TRadioUnderCCell.h"

@implementation ALPS_TRadioUnderCCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.nameLabel = [[UILabel alloc] init];
        self.nameLabel.textAlignment = 1;
        self.nameLabel.backgroundColor = [UIColor colorWithRed:0.80 green:0.80 blue:0.80 alpha:1.00];
        [self.contentView addSubview:_nameLabel];
    }
    return self;
}


-(void)layoutSubviews
{
    [super layoutSubviews];
    self.nameLabel.frame = self.contentView.bounds;
}

-(void)setModel:(ALPS_TRadioModel *)model
{
    if (_model != model) {
        _model = model;
        self.nameLabel.text = self.model.name;
    }
}

@end
